﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Golf.Core" namespace="Golf.Core">
  <class name="Score" table="tb_Score" lazy="false">
    <id name="Id">
      <column name="ScoreId" />
      <generator class="native" />
    </id>
    <many-to-one name="Scorecard" column="ScorecardId" class="Scorecard" not-null="true" foreign-key="FK_Score_Scorecard" />
    <many-to-one name="Hole" column="HoleId" class="Hole" not-null="true" foreign-key="FK_Score_Hole" />
    <property name="Strokes" not-null="true" />
  </class>
</hibernate-mapping>